package com.beiming.libra.domain.dto.requestdto;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.beiming.libra.common.constants.ValidateMessage;
import com.beiming.libra.common.enums.PlatformEnum;
import com.beiming.libra.common.enums.UserTypeEnum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户密码登录dto
 * 
 * @author weibo
 */
@ApiModel("用户密码登录dto")
@Data
public class LoginRequestDTO implements Serializable {

  private static final long serialVersionUID = 2848176419608122970L;
  /**
   * 平台类型(WEB[网页],WECHAT[小程序],MANAGE[后台生成],OTHER[其他])
   */
  @ApiModelProperty(value = "平台类型(WEB[网页],WECHAT[小程序],MANAGE[后台生成],OTHER[其他])", required = true)
  @NotNull(message = ValidateMessage.PLATFORM_NOT_NULL)
  private PlatformEnum platform;
  /**
   * 手机号或用户名
   */
  @ApiModelProperty(value = "手机号或用户名", required = true)
  @NotBlank(message = ValidateMessage.LOGIN_NAME_NOT_BLANK)
  private String loginName;
  /**
   * 用户类型(PEOPLE[个人],COMPANY[企业],SPECIAL[专项用户],SECRETARY[办案秘书],
   * ARBITRATION[仲裁员],FINANCE[财务],LEADER[领导],ADMIN[系统管理员])
   * 
   */
  @ApiModelProperty(value = "用户类型(PEOPLE[个人],COMPANY[企业],SPECIAL[专项用户],SECRETARY[办案秘书], ARBITRATION[仲裁员],FINANCE[财务],LEADER[领导],ADMIN[系统管理员])", required = true)
  @NotNull(message = ValidateMessage.USER_TYPE_NOT_BLANK)
  private UserTypeEnum userType;
  /**
   * 登录密码
   */
  @ApiModelProperty(value = "登录密码", required = true)
  @NotBlank(message = ValidateMessage.PASSWORD_NOT_BLANK)
  private String password;

}
